Package test.common

Source Code of test.common.SamplePopupMenu

/**
*
*/
package test.common;

import java.awt.ComponentOrientation;

import org.pushingpixels.flamingo.api.common.JCommandMenuButton;
import org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon;
import org.pushingpixels.flamingo.api.common.popup.JCommandPopupMenu;

public class SamplePopupMenu extends JCommandPopupMenu {
  public SamplePopupMenu(ComponentOrientation co) {
    this.addMenuButton(new JCommandMenuButton("Test menu item 1",
        new EmptyResizableIcon(16)));
    this.addMenuButton(new JCommandMenuButton("Test menu item 2",
        new EmptyResizableIcon(16)));
    this.addMenuButton(new JCommandMenuButton("Test menu item 3",
        new EmptyResizableIcon(16)));
    this.addMenuSeparator();
    this.addMenuButton(new JCommandMenuButton("Test menu item 4",
        new EmptyResizableIcon(16)));
    this.addMenuButton(new JCommandMenuButton("Test menu item 5",
        new EmptyResizableIcon(16)));

    this.applyComponentOrientation(co);
  }
}
TOP

Related Classes of test.common.SamplePopupMenu

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.